package com.lmxdawn.api.admin.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 代练服务
 * </p>
 *
 * @author huangyubin
 * @since 2024-07-05
 */
@TableName("t_training")
public class Training implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属类别 1 包节日套 2 强化增幅 3 合龙袍天空 4 pk代练 5 等级代练 6 深渊代练 7 其他
     */
    private Integer category;

    /**
     * 是否发布
     */
    private Integer isPublish;

    /**
     * 标题
     */
    private String title;

    /**
     * 子标题
     */
    private String subTitle;

    /**
     * 标签
     */
    private String tags;

    /**
     * 图片
     */
    private String pic;

    /**
     * 价格
     */
    private String price;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 浏览次数
     */
    private Integer viewCount;

    /**
     * 别名
     */
    private String alias;

    private String url;

    /**
     * 内容摘要
     */
    private String remark;

    private String detail;

    private Date createTime;

    private String createBy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Integer getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(Integer isPublish) {
        this.isPublish = isPublish;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public String toString() {
        return "Training{" +
        "id = " + id +
        ", category = " + category +
        ", isPublish = " + isPublish +
        ", title = " + title +
        ", subTitle = " + subTitle +
        ", tags = " + tags +
        ", pic = " + pic +
        ", price = " + price +
        ", sort = " + sort +
        ", viewCount = " + viewCount +
        ", alias = " + alias +
        ", url = " + url +
        ", remark = " + remark +
        ", detail = " + detail +
        ", createTime = " + createTime +
        ", createBy = " + createBy +
        "}";
    }
}
